<template>
  <div style="margin: 30px">
    <input-table
      v-model="value.form"
      :config="config"
    ></input-table>
    <input-table
      v-model="form"
      :config="configTwo"
    ></input-table>
    <div>{{value}}</div>
  </div>
</template>

<script>
import InputTable from "./component/InputTable";
let option = [
  {label: '男', value: 'male'},
  {label: '女', value: 'female'},
];
export default {
  components: {
    InputTable
  },
  data() {
    return {
      msg: '新建流程',
      value: {
        form: {}
      },
      config: {
        // title: '哈哈哈：',
        values: [
          {
            title: '姓名',
            type: 'input',
            dataIndex: 'name',
            props: {
              disabled: false
            }
          },
          {
            title: '性别',
            type: 'select',
            dataIndex: 'sex',
            props: {
              disabled: false
            },
            options: option
          },
          {
            title: '年龄',
            type: 'input',
            dataIndex: 'age',
            props: {
              disabled: false
            }
          }
        ]
      },
      configTwo: {
        // title: '哈哈哈：',
        values: [
          {
            title: '建设期',
            type: 'input',
            dataIndex: 'name',
            props: {
              disabled: false
            }
          },
          {
            title: '运营/回购期',
            type: 'select',
            dataIndex: 'sex',
            props: {
              disabled: false
            },
            options: [
              {
                label: '男', value: 'male'
              },
              {
                label: '女', value: 'female'
              }
            ]
          },
          {
            title: '项目名称',
            type: 'input',
            dataIndex: 'age',
            props: {
              disabled: false
            }
          },
          {
            title: '项目ID',
            type: 'input',
            dataIndex: 'age',
            props: {
              disabled: false
            }
          }
        ]
      }
    }
  },
  created() {}
}
</script>
<style>

</style>
